package com.qfjy.controller;

import com.qfjy.service.VideoInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName VideoInfoController
 * @Description TODO
 * @Author guoweixin
 * @Date 2023/3/8
 * @Version 1.0
 */
@Controller
@ResponseBody
@RequestMapping("videoInfo")
@Slf4j
public class VideoInfoController {

    @Autowired
    private VideoInfoService videoInfoService;

    /**
     * 根据会议编号查询视频详情
     */
    @GetMapping("select")
    public String selectVideoInfoByPcode(@RequestParam("pcode") String pcode){
        return videoInfoService.selectVideoInfoByPcode(pcode);
    }

}
